#include <iostream>
#include <cstring>
using namespace std;
int t, n;
int a[105];
int main(){
	cin >> t;
	while(t--){
		int flag = 0, x;
		memset(a, 0, 105 * 4);
		cin >> n;
		for (int i = 0; i < n; i++){
			cin >> x;
			a[x]++;
		}
		for (int i = 2; i <= 100; i++){
			if (a[i] >= 2){
				cout << "YES" << endl;
				flag = 1;
				break;
			}
		}
		if (!flag) cout << "NO" << endl;
	}
	return 0;
}
